package Server.Model.Hall;

import java.util.HashMap;
import java.util.Map;

public class GameMgr {
	private static GameMgr _instance = null;
	private Map<Integer,String> m_userGameType = new HashMap<Integer,String>();
	public static GameMgr getInstance(){
		if(_instance == null){
			_instance = new GameMgr();
			_instance.init();
		}
		return _instance;
	}
	public void init(){
		//初始化游戏管理器
	}
	public void setUserGameType(int uid,String type){
		m_userGameType.put(uid, type);
	}
	public String getUserGameType(int uid){
		if(m_userGameType.containsKey(uid)){
			return m_userGameType.get(uid);
		}else{
			return "";
		}
	}
}
